package cn.sc.hunter.framework.bean;

import java.lang.reflect.Method;

/**
 * 封装 RequestMapping 信息
 */
public class Handler {

    private Class<?> controllerClass;

    /**
     * RequestMapping 对应请求方法
     */
    private Method requestMethod;

    public Handler() {
    }

    public Handler(Class<?> controllerClass, Method requestMethod) {
        this.controllerClass = controllerClass;
        this.requestMethod = requestMethod;
    }

    public Class<?> getControllerClass() {
        return controllerClass;
    }

    public Method getRequestMethod() {
        return requestMethod;
    }
}
